package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import com.cnpc.eisc.base.pojo.PageInfo;
import com.cnpc.eisc.base.pojo.Result;
import java.util.List;

/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
    * 查询${table.comment!}分页数据
    *
    * @param page 分页参数
    * @param sort 排序字段 数据库字段 默认create_time
    * @param isAsc 是否正序 默认false
    * @param ${entity?uncap_first} 搜索
    * @return PageResult<${entity}>
    */
    PageInfo<${entity}> query(PageInfo<${entity}> page,String sort,Boolean isAsc,${entity} ${entity?uncap_first});

    /**
    * 添加${table.comment!}
    *
    * @param ${entity?uncap_first} ${table.comment!}
    * @return int
    */
    Integer add(${entity} ${entity?uncap_first});

    /**
    * 删除${table.comment!}
    *
    * @param ids 主键组
    * @return int
    */
    Integer delete(List<String> ids);

    /**
    * 详情
    * @param id 主键
    * @return ${entity}
    */
    ${entity} detail(String id);
}
</#if>
